<% content_for :css do %>
  <%= stylesheet_link_tag 'valleyer/exercise/exerciseBase'  %>
  <%= stylesheet_link_tag 'valleyer/exercise/exercisePage'  %>
  <%= stylesheet_link_tag 'valleyer/exercise/oldExercise'  %>
<% end %>


<div class="header">
  <div class="logo">活动频道</div>
  <div class="logoadd">
    <div class="imglink"><%= link_to image_tag('valleyer/addnewactive.gif'), new_meet_url %></div>
   </div>
</div>

<div class="left">
  <div class="title"><p>正在进行的活动</p><a href="javascript:;">往期活动</a></div>
  <% @meets.each do |meet| %>
    <div class="mainstay">
      <div class="monomer">
        <div class="picture"><%= image_tag('valleyer/new_year.jpg') %></div>
        <div class="minute">
          <div class="name"><a href="javascript:;"><%=h meet.name %></a><p>222222人参加</p></div>
          <div class="content"><%=h meet.des %></div>
          <div class="time"><%=h meet.star_at %> --<%=h meet.end_at %></div>
        </div>
        <div class="operate">
          <div class="join"><a href="javascript:;">我要参加</a></div>
          <div class="review"><a href="javascript:;">我要评论</a></div>
        </div>
      </div>
    </div>
  <% end %>
</div>

<div class="right">
  <div class="myExercise">
    <div class="title">我参加的活动</div>
    <div class="mainstay">
      <div class="picture"><%= image_tag('valleyer/exercise_picture.jpg') %></div>
      <div class="content"><a href="javascript:;">第一届大学生最喜爱的品牌调查活动</a></div>
      <div class="time">还有46天结束</div>
    </div>
  </div>
  <div class="oldExercise">
    <div class="title"><p>我参加的往期活动</p><a href="javascript:;">更多</a></div>
    <div class="mainstay">
      <div class="picture"><%= image_tag('valleyer/exercise_picture.jpg') %></div>
      <div class="content"><a href="javascript:;">第一届大学生最喜爱的品牌调查活动</a></div>
    </div>
  </div>
</div>